import request from '@/utils/request'

/**
 *  首页基础数据统计
 */
export const getBaseInfoApi = (params) => {
  return request({
    url: '/index/getBaseInfo',
    params
  })
}

/**
 * 今日简报
 */
export const getTodayInfoApi = () => {
  return request({
    url: '/index/getTodayInfo'
  })
}

/**
 * 代办事项
 */
export const getTodoInfoApi = (params) => {
  return request({
    url: '/index/getTodoInfo',
    params
  })
}
/**
 * 线索转化龙虎榜
 */
export const getStatisticApi = (params) => {
  return request({
    url: '/index/salesStatistic',
    params
  })
}
/**
 * 商机转化龙虎榜
 */
export const getbusinessApi = (params) => {
  return request({
    url: '/index/businessChangeStatistics',
    params
  })
}

/**
 * 统计分析--线索统计--线索转化率漏斗图
 */
export const getMapApi = (beginCreateTime, endCreateTime) => {
  return request({
    url: `/report/getVulnerabilityMap/${beginCreateTime}/${endCreateTime}`
  })
}

